package com.imooc.ecommerce.source;

import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;

/**
 * <p>自定义物流消息通信信道(Source)
 *
 * @author Yaxi.Zhang
 * @since 2022/11/16 20:09
 */
public interface LogisticsSource {
    /** 输出信道名称 */
    String OUTPUT = "logisticsOutput";

    /**
     * <p>物流 Source -> logisticsOutput
     * <p>通信信道的名称是 logisticsOutput, 对应到 yml 文件里的配置
     */
    @Output(LogisticsSource.OUTPUT)
    MessageChannel logisticsOutput();
}
